//*********************************************************************
// Echo.java    Author :20172330
//
// Demonstrates the ues of the nextLine method of the Scanner class
// to read a astring from the user
//*********************************************************************

import java.util.Scanner;
public class Li28
{
   //------------------------------------------------------------------
   // Reads a character string from the user and prints it.
   //------------------------------------------------------------------
   public static void main(String []args)
  {
    String message;
    Scanner scan = new Scanner(System.in);

    System.out.println("Enter a line of text:");

    message = scan.nextLine();

    System.out.println("YOu entered: \"" + message + "\"");
  }
}
   

